package org.alex.netShop.service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import org.alex.netShop.interfaces.Seller;
import org.alex.netShop.interfaces.Sellers;





public class SellersBean implements Sellers {
	
	private Map<String, Seller> sellers = new HashMap<String, Seller>();

	
	public Collection<Seller> retrieve(){
		return sellers.values();
	}
	public Seller retrieveSeller(String name){
		return sellers.get(name);
	}
	public Seller save(Seller seller){
		return sellers.put(seller.getName(), seller);
	}
	
	

}
